package indi.zhifa.engine.core.minio.util;


import indi.zhifa.engine.core.minio.properties.MinioConfigProperties;
import io.minio.GetObjectResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface IMinIoUtil {
    MinioConfigProperties getConfig();
    String putFile(List<String> pFolder, MultipartFile pFile);
    String putFile(List<String> pFolder, String pName, String pSuffix, InputStream pInputStream, long pSize);
    String putFile(List<String> pFolder, String pSuffix, byte[] pBytes);

    GetObjectResponse getFile(String pPath);
    void deleteFile(String pPath);
    String copy(String pOriginPath,List<String> pDirectory);

}
